HLDJOB, RLSJOB and ENDJOB in AS400

HLDJOB, RLSJOB and ENDJOB in AS400
HLDJOB, RLSJOB and ENDJOB in AS400, HLDJOB, RLSJOB, ENDJOB, ibmi
HLDJOB, RLSJOB and ENDJOB in AS400

HLDJOB

The Hold Job (HLDJOB) command held the job i.e. it stops the job processing and we can resume the Job later.

Holding a Job will hold all the threads within that job.

The job is held until it is released by the Release job (RLSJOB) command, or Cleared by the Job queue (CLRJOBQ) command, or Ended by the End Job (ENDJOB) command, or ended when the job is active by ending the subsystem using command ENDSBS or the End system (ENDSYS) command or the Power-down system (PWRDWNSYS) command.

RLSJOB

The Release Job (RLSJOB) command releases the job from the held state done by the (HLDJOB) command or if the job was submitted held job using the SBMJOB command.

The job which is released becomes active again and at the time of releasing the job, it can be on the job queue (JOBQ), on the output queue (OUTQ), or active in the subsystem.

Release the job will release all its related threads.

ENDJOB

End Job (ENDJOB) command ends the specified job. The job can be on the Job Queue (JOBQ), or Active, or completed.

When ENDJOB command triggers for the specified job then all the open database files within that job get closed, Joblog spooled to the output queue (OUTQ), etc. For ending the job immediately we can specify the OPTION parameter value as *IMMED.

ENDJOB JOB(TESTJOB) OPTION(*IMMED) SPLFILE(*YES)

Related Post

You may like these posts

  • Work with Job (WRKJOB) in AS400 Work with Job (WRKJOB) WRKJOB command allows us to work with or change various job-related information for the user jobs such as Job-status attrib…
  • Submit Job (SBMJOB) in AS400 SBMJOB The Submit Job (SBMJOB) command allows an already running job to submit another job to a batch job queue (JOBQ) to be run later as a batch job…
  • Work with Active Jobs (WRKACTJOB) in AS400 WRKACTJOB The Work with Active Jobs (WRKACTJOB) command allows us to work with performance and status information for the active jobs in…
  • Work with Spooled Files (WRKSPLF) in AS400 WRKSPLF Work with Spool Files (WRKSPLF) commands show the list of all the spool files available on the system or the selected list from …
  • How a batch job starts in AS400 How does a batch job start When a user submits a batch job the job retrieves some information before getting placed in the Job queue (JOBQ). A …
  • AS400 Jobs Introduction to Job AS400 Job is a specific work/function which has given a named Job. This AS400 Job is submitted from various places and run in a subsystem. Types of…

Post a Comment